<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Proxy
 *
 * @author Andriy
 */
class Proxy
{
    
    protected $_proxy_list = array(
        '196.201.211.145:80', //+
        '174.132.110.194:3128',//+
//        '91.210.104.104:80',//-
//        '187.111.88.253:8080',//+ slow
        '66.98.188.60:8081',//+
//        '190.145.24.162:8080',//-
//        '166.111.48.66:3128',//-
//        '87.117.238.254:3128',//-
        '200.195.176.102:8080',//+
        '219.137.229.210:3128',//+
        '118.97.81.155:8080',//+
//        '95.168.183.244:3128',//-
//        '213.202.240.208:8118',//-
    );
    
    protected function _getRandomIndex()
    {
        return rand( 0, count( $this->_proxy_list ) - 1 );
    }


    public function getProxy()
    {
        $proxy = $this->_proxy_list[ $this->_getRandomIndex() ];
        return $proxy;
    }
    
}

?>
